<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta http-equiv="Access-Control-Allow-Origin" content="*">
  <link rel="stylesheet" href="dist/muses.min.css">
  <title>Muse Autocompleter Demo</title>
  <style>
    div#header, div#footer {
      margin-bottom: 15px;
      border: 1px solid gray;
      width: 100%;
      height: 20px;
    }
  </style>
</head>

<body class="bg-info" style="padding-bottom: 100px">

  <div id="header">I am a div.</div>

  <div id="tag" data-name="email" data-id="uuid">["java", "短信通知", "springboot"]</div>
  <div id="email" data-name="email" data-id="uuid">812599742@qq.com</div>
  <div id="email_three" data-name="email" data-id="uuid">["812599742@qq.com", "daimafans@gmail.com"]</div>

  <div id="footer">I am another div.</div>

</body>
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="dist/muses.min.js"></script>
<script type="text/javascript">
  // js代码初始化
  $('#tag').autoCompleter({url: 'http://localhost:8080/tag/fuzzy', name: 'email', placeholder: '标签：1到5个标签'});
  $('#email').autoCompleter({mail: true, single: true, placeholder: 'email please'});
  $('#email_three').autoCompleter({mail: true, max: 3, placeholder: '3 email please'});
</script>

</html>